package com.itheima.wisdomnext.entity;

import java.sql.Timestamp;

public class Favorite {
    private Integer id;            // 收藏记录 ID
    private Integer userId;        // 用户 ID
    private Integer targetId;      // 收藏目标 ID（帖子或评论 ID）
    private String targetType;     // 收藏类型（'POST' 或 'COMMENT'）
    private Timestamp createdAt;   // 收藏时间

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }
}
